package com.osgix.common.pojo;

import java.io.Serializable;

/**
 * 用户组成员对象
 */
public class GroupUser implements Serializable {

	private static final long serialVersionUID = -7038867897235364297L;
	/**
	 * 组织机构ID
	 */
	private String deptId = "";
	/**
	 * 账号
	 */
	private String userAccount = "";
	/**
	 * 类型 0:管理员/1:组成员	
	 */
	private int userType = 1;

	/**
	 * 构造函数
	 */
	public GroupUser() {

	}

	/**
	 * 构造函数
	 * 2008-8-27,上午11:04:12
	 * @author zqmao
	 * @version 2.0
	 * @param pDept_id 组织机构ID
	 * @param pAccount 组成员账号
	 * @param pType 组成员类型
	 */
	public GroupUser(String deptId, String Account, int type) {
		this.deptId = deptId;
		this.userAccount = Account;
		this.userType = type;
	}

	/**
	 * 重写克隆方法
	 * 2008-8-27,上午11:05:53
	 * @author zqmao 
	 * @version 2.0
	 *
	 * @see java.lang.Object#clone()
	 */
	public Object clone() {
		GroupUser clone = new GroupUser();
		clone.setDeptId(deptId);
		clone.setUserAccount(userAccount);
		clone.setUserType(userType);
		return clone;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String toString() {
		return "dept_id=" + deptId + "/ account=" + userAccount + "/ type=" + userType;
	}
}
